When you have a new update for your application, you may build it as a
setup file in the form of an executable (.EXE) or a compressed cabinet (.CAB).
By default, after downloading the update, the Updater automatically executes
the downloaded file to install the update to the application. Besides, you may
also configure the Updater to run a setup script instead to perform tasks
needed to install the update. The script file can be VBScript (.VBS), batch
(.BAT), or any executable file.
The following is a sample batch file that uninstalls the previous
version, and then runs the downloaded setup file (Setup.exe) to install the new
version.
@ECHO OFF |
IF NOT EXIST Setup.exe GOTO END |
ECHO Uninstalling the
previous version ... |
Msiexec.exe /x {01234567-89AB-CDEF-0123-456789ABCDEF} /quiet /passive |
IF ERRORLEVEL 0 GOTO INSTALL |
ECHO Uninstallation Error! |
PAUSE |
GOTO END |
:INSTALL |
ECHO Installing the update ... |
Setup.exe |
:END |
See Also
·
Distributing
Protected Applications
·
Deploying
New Versions for Download